using System.Collections.Generic;
using CoolCode.Web.Mvc.UI.Grid.Syntax;

namespace CoolCode.Web.Mvc.UI.Grid
{ 
	public interface IGridModel<T>: IGridModel where T: class 
	{
		IGridRenderer<T> Renderer { get; set; }
		ICollection<GridColumn<T>> Columns { get; }
		IGridSections<T> Sections { get; }
	}

	public interface IGridModel
	{
        string ID { get; set; }		
		string EmptyText { get; set; }
		IDictionary<string, object> Attributes { get; set; }
        string Container { get; set; }
		string PagingQueryStringName { get; set; }
		bool IsPaging { get; set; }
		bool IsAjax { get; set; }
		string SortByQueryStringName { get; set; } 
		string SortOrderQueryStringName {get;set;}
	}
}